getCanWithdrawUnfreezeAmount
Query an account under the V2 interface, if you operate WithdrawExpireUnfreeze to withdraw the principal, the amount of withdrawal principal that can be obtained. (v5.1.0 new interface)
Usage
tronWeb.trx.getCanWithdrawUnfreezeAmount(address, timestamp, options);
Parameters
Parameters | Parameter Description | Data Type |
---|---|---|
address | account address (base58 or hex) | String |
timestamp | query cutoff timestamp(millisecond), larger than 0, default is Date.now() | Integer |
options | Optional. Default is { confirmed: true } . If options.confirmed is true , the result is queried from solidity node. | { confirmed: boolean } |
Return
Object
Example
> const { amount } = await tronWeb.trx.getCanWithdrawUnfreezeAmount('ownerAddress', Date.now());
{
"amount": 9000000
}